import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    align: 'center',
    dataIndex: 'createTime',
  },
  {
    title: '公司名称',
    align: 'center',
    dataIndex: 'name',
  },
  {
    title: '登录用户名',
    align: 'center',
    dataIndex: 'username',
  },
  {
    title: '公司LOGO',
    align: 'center',
    dataIndex: 'logoUrl',
    customRender: render.renderImage,
  },
  {
    title: '简介',
    align: 'center',
    dataIndex: 'info',
  },
  {
    title: '负责人',
    align: 'center',
    dataIndex: 'fzr',
  },
  {
    title: '联系电话',
    align: 'center',
    dataIndex: 'lxfs',
  },
  {
    title: '省市区',
    align: 'center',
    dataIndex: 'address',
  },
  {
    title: '详细地址',
    align: 'center',
    dataIndex: 'addressInfo',
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: { title: '创建日期', order: 0, view: 'datetime', type: 'string' },
  name: { title: '公司名称', order: 1, view: 'text', type: 'string' },
  username: { title: '登录用户名', order: 2, view: 'text', type: 'string' },
  logoUrl: { title: '公司LOGO', order: 3, view: 'image', type: 'string' },
  info: { title: '简介', order: 4, view: 'umeditor', type: 'string' },
  fzr: { title: '负责人', order: 5, view: 'text', type: 'string' },
  lxfs: { title: '联系电话', order: 6, view: 'text', type: 'string' },
  address: { title: '省市区', order: 7, view: 'pca', type: 'string' },
  addressInfo: { title: '详细地址', order: 8, view: 'textarea', type: 'string' },
};
